from rest_framework import serializers
from .models import Video

class VideoSerializer(serializers.ModelSerializer):
    class Meta:
        model = Video
        fields = ['id', 'title', 'cover', 'duration', 'author', 'author_avatar', 'views', 'time', 'video_url']
